package sg.edu.nus.iss.jass.persistence;

import java.util.List;

import sg.edu.nus.iss.jass.datastore.BaseDAO;
import sg.edu.nus.iss.jass.datastore.exception.DataStoreException;
import sg.edu.nus.iss.jass.dto.Company;

public class CompanyDAO extends BaseDAO {

	public List<Company> getAllCompanies() throws DataStoreException {

		return selectAll(Company.class);
	}
	
	public Company getCompanyById(String companyID) throws DataStoreException {
		return selectById(Company.class, companyID);
	}

}
